/**	CodeEval::FizzBuzz[Easy]
 *	The player designated to go first says the number "1", and each player 
 *	thenceforth counts one number in turn. However, any number divisible by 
 *	'A' e.g. three is replaced by the word fizz and any divisible by 'B' e.g. 
 *	five by the word buzz. Numbers divisible by both become fizz buzz. A player 
 *	who hesitates or makes a mistake is either eliminated. 
 *	
 *	Input:
 *		First number is num to divide by ('A')
 *		Second number is num to divide by ('B')
 *		Third number is numt to count up to ('N')
 *
 *			3 5 10
 *			2 7 15
 *
 *	Output:
 *		Print out series 1 through N replacing numbers divisible by 'A' with F,
 *		numbers divisible by 'B' by B and numbers divisible by boths as 'FB'
 *		Since the input file contains multiple sets of values, your output will 
 *		print out one line per set. Ensure that there are no trailing empty spaces 
 *		on each line you print. E.g.
 *
 *	Solution by Michael Pio Arroyo
 */

#include <iostream>
#include <fstream>
#include <string>
#include <vector>

struct FB {
	int A;
	int B;
	int N;
};

int main(int argc, char** argv) {
	std::ifstream file;
	std::string line;
	std::string::iterator it;
	std::vector<FB*> fbarray;
	file.open("test.txt");

	// get each line and put into array
	while (std::getline(file, line)) {
		std::string s;
		
		for (it = line.begin(); it != line.end(); ++it) {
			std::string t;
			int * n;
			if (*it != ' ') {
				t = *it; 
				s.append(t.c_str());
			}
			else {
				s.clear();
			}
		}
		
		// place line into array


	}

	// get first number A

	// get second number B

	// get third number N

	// cycle through series and check for F or B and print

	file.close();
	return 0;
}